<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
	.layui-card .layui-card-body span {
		margin-right: 15px;
	}
	.spanshuu{
		margin-right: 15px;
		margin-left: 15px;
	}
</style>
</head>
<body>
				<fieldset class="layui-elem-field layui-field-title site-title">
					<legend>
						<a name="fixbar" style="font-size: 16px; color: #ce2424;">${tbclass }（班委会）名单</a>
					</legend>
				</fieldset>
				<div style="padding: 20px; background-color: #F2F2F2;">
					<div class="layui-row layui-col-space15">
						<div class="layui-col-md6">
							<div class="layui-card">
								<div class="layui-card-body">
									<table class="layui-table" lay-size="sm" style="margin: 0" >
										<thead>
										<tr>
											<th>职务</th>
											<th>姓名</th>
											<th>单位</th>
										</tr>
										</thead>
										<tbody>
										<c:if test="${commtwo.size()==0 }">
											<tr>
												<td style="text-align: center;" colspan="3">无人选</td>
											</tr>
										</c:if>
										<c:if test="${commtwo!=null }">
											<c:forEach items="${commtwo }" var="c">
												<tr>
													<th>${c.position }</th>
													<th>${c.student.name }</th>
													<th>${c.student.workUnit }</th>
												</tr>
											</c:forEach>
										</c:if>
										
										
										
										
										</tbody>
									</table>
								</div>
							</div>
						</div>
						<div class="layui-col-md6">
							<div class="layui-card">
								<div class="layui-card-body">
									<table class="layui-table" lay-size="sm" style="margin: 0" >
										<thead>
										<tr>
											<th>职务</th>
											<th>姓名</th>
											<th>单位</th>
										</tr>
										</thead>
										<tbody>
										<c:if test="${commone.size()==0 }">
											<tr>
												<td style="text-align: center;" colspan="3">无人选</td>
											</tr>
										</c:if>
										<c:if test="${commone!=null }">
											<c:forEach items="${commone }" var="c">
												<tr>
													<th>${c.groupNumber }组组长</th>
													<th>${c.name }</th>
													<th>${c.workUnit }</th>
												</tr>
											</c:forEach>
										</c:if>
										</tbody>
									</table>
								</div>
							</div>
						</div>
						<div class="layui-col-md12">
							<div class="layui-card">
								<div class="layui-card-body">
									班主任：<span>${student.tbClass.teacherId.name==null?"无":student.tbClass.teacherId.name }</span>
									电话：<span>${student.tbClass.teacherId.phone==null?"无":student.tbClass.teacherId.phone }</span><span class="spanshuu">|</span>
									辅导员：<span>${student.tbClass.instructor.name==null?"无":student.tbClass.instructor.name }</span> 
									电话：<span>${student.tbClass.instructor.phone==null?"无":student.tbClass.instructor.phone }</span><span class="spanshuu">|</span>
									后勤服务员：<span>${student.tbClass.logistics.name==null?"无":student.tbClass.logistics.name }</span> 
									电话：<span>${student.tbClass.logistics.phone==null?"无":student.tbClass.logistics.phone }</span>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				<div class="clear"></div>
				<fieldset class="layui-elem-field layui-field-title site-title" style="margin-top: 20px">
					<legend><a name="fixbar">学员党支部（班委会）工作职责</a></legend>
				</fieldset>

				<div class="layui-collapse" lay-accordion="">
					<c:forEach items="${xyxz }" var="c">
						<c:if test="${c.id==idone }">
							<div class="layui-colla-item">
								<h2 class="layui-colla-title">${c.title }</h2>
								<div class="layui-colla-content layui-show">${c.content }</div>
							</div>
						</c:if>
						<c:if test="${c.id!=idone }">
							<div class="layui-colla-item">
								<h2 class="layui-colla-title">${c.title }</h2>
								<div class="layui-colla-content">${c.content }</div>
							</div>
						</c:if>
					</c:forEach>
			
				</div>
	<script type="text/javascript">
				layui.use('element', function() {
					var element = layui.element;
					element.init();
				});
				$('.layui-colla-item .layui-colla-content img').css('height','200px');
				</script>
      
</body>
</html>